using System;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using S = SecretLabs.NETMF.Hardware;

namespace Netduino4Fun.Framework
{
    public class RangeSensor
    {
        S.AnalogInput input;

        public RangeSensor(Cpu.Pin pin)
        {
            this.input = new S.AnalogInput(pin);            
        }

        public int Value
        {
            get { return this.input.Read(); }
        }
    }
}
